# Contributor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=libz
pkgver=1.2.8
pkgrel=0
pkgdesc="A general purpose data compression library"
url="https://sortix.org/libz/"
arch="all"
license="zlib"
depends=""
makedepends="$depedends"
subpackages="$pkgname-dev $pkgname-doc"
source="https://sortix.org/libz/release/$pkgname-$pkgver.2015.12.26.tar.gz"
builddir="$srcdir/$pkgname-$pkgver.2015.12.26"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR=$pkgdir install || return 1
}

sha512sums="20398a642acef402d59301dbffb7c1864d28214f8dddcb5403ae50071b1ebd3c0dc1df5b0e567443ad3813ba9d11bd0da1eeb36db3dcafc48f098a6dd6cd5a54  libz-1.2.8.2015.12.26.tar.gz"
